<?PHP
  class SettingsWidget extends WidgetBase{
    public function load(){
      $this->headline = $GLOBALS['language']->getString("SETTINGS")." (".$GLOBALS['language']->getString("FOLDER").")";
      $settings = new SettingsForm();
      $settings->role = 3;
      $settings->template = "plugin_settingswidget_widget";
      $settings->dir = $_SESSION['dir'];
      $settings->url  = Settings::getInstance()->get("host").$_GET['include'].".html";
      if(isset($_GET['dir'])){
        $settings->url  .= "?dir=".$_GET['dir'];
      }
      if(isset($_GET['areatype'])){
        $settings->areaType = $_GET['areatype'];
      }
      if(isset($_GET['area'])){
        $settings->area = $_GET['area'];
      }
      if(isset($_GET['role'])) $settings->role = $_GET['role'];
      
      $this->content = $settings->getCode();
    }
  }
?>